<?php html::pushHead('user/login/style.css'); html::pushHead('user/style.css', TRUE);?>
<?php $this->loadTemplate('plate/top');?>

<form id="login_f" style="margin-top:0" action="" method="post" class="h-box" onsubmit="{sm();return false;}"><input type="submit" class="hSubmit" />
<p class="i-field"><label>帐号</label><input type="text" name="data[name]" id="lu_name" value=""></p>
<p class="i-field"><label>密码</label><input type="password" id="lu_password" name="data[password]" /><span id="login_submit" class="ir"><a onclick="sm();"></a></span></p> 
<p class="i-smil"><label><input type="checkbox" name="data[saveTime]" value="9" />记住登录</label></p>
<p class="i-smil"><span class="fl-r"><a href="?u=cuser\password-fre">找回密码</a><a href="?u=cuser\reg">未注册</a></p>
</form>
<script>
function sm(){if(CheckForm('login_f')){
var a = $('#login_submit a').addClass('ajax-loading');
$.post(ROOT_URL+'?u=cuser\\login-fauth',$('#login_f').serialize(),function(r){if(checAjaxRe(r, 0.3)){document.location<?php echo $jumURL? '="'.addslashes($jumURL).'"':'.reload()';?>;}else{a.removeClass('ajax-loading');}});
}}
$('input','.i-field').blur(function(){$(this).siblings('label').toggle(this.value==''?true:false);}).keydown(function(){$(this).siblings('label').hide();}).attr('check','^.{1,}$').each(function(){if(this.value)$(this).siblings('label').hide();});
window.setTimeout(function(){
<?php if($n = YF_f::get_cookie('login_cn')){?>
var a =$('<b class="ir l-reset">&times; </b>').one('click',function(){$('#lu_name').attr('readonly',false).val('').blur();$(this).remove();});
$('#lu_name').val("<?php e_a($n)?>").blur().attr('readonly',true).after(a);
<?php }?>
},200);
</script>

<?php $this->loadTemplate('plate/bottom');?>
